package com.haha.community.dao;

import com.haha.community.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Value;

@Mapper
public interface UserMapper {
    User selectById(int id);

    User selectByName(String username);

    User selectByEmail(String email);

    int insertUser(User user);

    int updateStatusById(@Param("id") int id,@Param("status") int status);

    int updateHeadById(@Param("id")int id,@Param("headUrl") String headUrl);

    int updatePasswordById(@Param("id")int id,@Param("password") String password);


}
